package com.hqyj.springboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * //@RestController=@Controller + @ResponseBody
 * Responsebody 把要响应在页面上的内容放在response里，响应在页面上
 */

@RestController
public class TestController {
    @RequestMapping("/hello")
    public String hello(){
        return "hello spring boot";
    }
}
